/**
 * 
 */
package com.googlecode.xcarve.register;

import com.googlecode.xcarve.zk.ZookeeperClient;

/**
 * @author duxinyun
 * 2014-12-15
 */
public class ZookeeperRegister extends ZookeeperClient implements Register{
	
	public ZookeeperRegister(String url) {
		super(url); 
	}
	
	
	@Override
	public void register(String service) {
		 registered.add(service);
		 retryRegistered.remove(service);
		 createPath(service, true);
		 
	}

	
	
}
